package com.xdj.chashuiwu.study.service.impl;

import com.xdj.chashuiwu.study.dao.LearnDao;
import com.xdj.chashuiwu.study.entity.LearnEntity;
import com.xdj.chashuiwu.study.service.LearnService;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xdj.common.utils.PageUtils;
import com.xdj.common.utils.Query;



@Service("learnService")
public class LearnServiceImpl extends ServiceImpl<LearnDao, LearnEntity> implements LearnService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<LearnEntity> page = this.page(
                new Query<LearnEntity>().getPage(params),
                new QueryWrapper<LearnEntity>()
        );

        return new PageUtils(page);
    }

}